#
# Be sure to run `pod lib lint HCPPSModule.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'HCPPSModule'
  s.version          = '0.3.8'
  s.summary          = 'A short description of HCPPSModule.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/jiangqianqiu/tool-moudle.git'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '蒋千秋' => 'm17710755529@163.com' }
  s.source           = { :git => 'https://gitee.com/jiangqianqiu/tool-moudle.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.pod_target_xcconfig = {
      'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
    }
  s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }


    s.ios.deployment_target = '9.0'
    ##########--友盟---#########
    s.subspec 'UM' do |um|
    um.ios.deployment_target = '9.0'
    
    
        ##########--基础库 包含友盟统计---#########
        um.subspec 'UMCommon' do |r|
        r.ios.deployment_target = '9.0'
        r.source_files = 'HCPPSModule/Classes/UM/UMCommon/*'
        r.dependency  'UMCCommon','~> 7.1.3'
        r.dependency  'UMCSecurityPlugins'
        end
        
        ##########--开发调试库---#########
        um.subspec 'UMCommonLog' do |r|
        r.ios.deployment_target = '9.0'
        r.source_files = 'HCPPSModule/Classes/UM/UMCommonLog/*'
        r.dependency  'UMCCommonLog'
        end
        
        ##########--UMPush---#########
        um.subspec 'UMPush' do |r|
        r.ios.deployment_target = '9.0'
        r.source_files = 'HCPPSModule/Classes/UM/UMPush/*'
        r.dependency  'HCPPSModule/UM/UMCommon'
        r.dependency  'UMCPush','~> 3.2.5'
        r.dependency  'UMCErrorCatch'
        end

        
        um.subspec 'UMShare' do |share|
        share.ios.deployment_target = '9.0'
            ##########--Base---#########
             share.subspec 'Base' do |r|
             r.ios.deployment_target = '9.0'
             r.source_files = 'HCPPSModule/Classes/UM/UMShare/Base/*'
             r.dependency  'HCPPSModule/UM/UMCommon'
             r.dependency  'UMCShare/UI','~> 6.9.10'
             end

             ##########--ReducedWeChat---#########
             share.subspec 'ReducedWeChat' do |r|
             r.ios.deployment_target = '9.0'
             r.source_files = 'HCPPSModule/Classes/UM/UMShare/ReducedWeChat/*'
             r.dependency 'HCPPSModule/UM/UMShare/Base'
             r.dependency 'UMCShare/Social/ReducedWeChat','~> 6.9.10'
             end
             
             ##########--QQ---#########
             share.subspec 'QQ' do |r|
             r.ios.deployment_target = '9.0'
             r.source_files = 'HCPPSModule/Classes/UM/UMShare/QQ/*'
             r.dependency 'HCPPSModule/UM/UMShare/Base'
             r.dependency 'UMCShare/Social/QQ'
             end
             
             ##########--Sina---#########
             share.subspec 'Sina' do |r|
             r.ios.deployment_target = '9.0'
             r.source_files = 'HCPPSModule/Classes/UM/UMShare/Sina/*'
             r.dependency 'HCPPSModule/UM/UMShare/Base'
             r.dependency 'UMCShare/Social/Sina'
             end
             
#            ##########--WeChat---#########
#            share.subspec 'WeChat' do |r|
#            r.ios.deployment_target = '9.0'
#            r.source_files = 'HCPPSModule/Classes/UM/UMShare/WeChat/*'
#            r.dependency 'HCPPSModule/UM/UMShare/Base'
#            r.dependency 'UMCShare/Social/WeChat'
#            end
        end
    end
    ##########--支付---#########

    s.subspec 'Pay' do |pay|
    pay.ios.deployment_target = '9.0'

    
#        ##########--银联支付不知道为啥集成不成功 日后有时间再试---#########
#        pay.subspec 'UPPay' do |upPay|
#            upPay.ios.deployment_target = '9.0'
#            upPay.source_files = 'HCPPSModule/Classes/Pay/UPPay/*'
#            upPay.vendored_libraries = ['HCPPSModule/Classes/Pay/UPPay/*.a']
#            #https://github.com/CocoaPods/CocoaPods/issues/3232 倒入libz.tbd 要省略lib
#            upPay.library = 'z'
#            upPay.frameworks = 'SystemConfiguration', 'CFNetwork'
#       end
        
       ##########--微信支付---#########
       pay.subspec 'WeChatPay' do |weChatPay|
           weChatPay.ios.deployment_target = '9.0'
           weChatPay.dependency 'HCInternalModule/WebView/Base/JSAPI'
           weChatPay.dependency 'WechatOpenSDK_Fuck'
           weChatPay.dependency 'ReactiveObjC'
           weChatPay.source_files = 'HCPPSModule/Classes/Pay/WeChatPay/*'
       end
#       pay.subspec 'Alipay' do |alipay|
#           alipay.ios.deployment_target = '9.0'
#           alipay.dependency 'AlipaySDK-iOS'
#           alipay.dependency 'ReactiveObjC'
#           alipay.source_files = 'HCPPSModule/Classes/Pay/Alipay/*'
#       end
#

        
    end

  # s.resource_bundles = {
  #   'HCPPSModule' => ['HCPPSModule/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
  #s.vendored_libraries = 'WoqiSDK/Classes/*.a' 导入自制的.a库
  #s.vendored_frameworks = 'WoqiSDK/Classes/*.framework' 导入自制的。framework
  # 依赖的系统library，这里是指系统的类似libz.tbd、libxml2.tbd这类的系统库
  # s.library = 'z' // 单个
  # s.libraries = 'z','xml2' // 多个

  # 第三方.a
  # s.vendored_libraries =
  # 第三方frameworks文件
  # s.vendored_frameworks =
  # 依赖关系，该项目所依赖的其他库，如果有多个需要填写多个s.dependency
  # s.dependency 'AFNetworking', '~> 2.3'
end
